<!-- start: Content -->
<div class="main">
    <!--面包屑 START-->
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="fa fa-user"></i>本站用户</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="/Admin">首页</a></li>
                <li><i class="fa fa-user"></i>本站用户</li>
            </ol>

        </div>
    </div>
    <!--面包屑 END-->

    <!--右侧内容主体 START-->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2><i class="fa fa-table red"></i><span class="break"></span><strong>本站用户列表</strong></h2>
                    <div class="panel-actions">
                        <a href="javascript:;" class="btn-setting"><i class="fa fa-rotate-right"></i></a>
                        <a href="javascript:;" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        <a href="javascript:;" class="btn-close"><i class="fa fa-times"></i></a>
                    </div>
                </div>
                <div class="panel-body">
                    <table class="table table-striped table-bordered bootstrap-datatable datatable">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>用户名</th>
                            <th>昵称</th>
                            <th>邮箱</th>
                            <th>用户头像</th>
                            <th>性别</th>
                            <th>注册时间</th>
                            <th>最后的登录IP</th>
                            <th>用户类型</th>
                            <th>最后的登录时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <if condition="$data['list']">
                            <tbody>
                            <foreach name="data.list" item="v">
                                <tr class="cp-del-categorg">
                                    <td>{$v['uid']}</td>
                                    <td>{$v['uname']}</td>
                                    <td>{$v['nickname']}</td>
                                    <td>{$v['u_email']}</td>
                                    <td>
                                        <span class="label label-success"><if condition="$v['face']">有<else/>无</if></span>
                                    </td>
                                    <td>{$v['sex']}</td>
                                    <td>{$v.add_time|date="Y-m-d",###}</td>
                                    <td>{$v['last_login_ip']}</td>
                                    <td>
                                        <span class="label label-info"><if condition="$v['user_type'] eq 1">admin<else/>普通会员</if></span>
                                    </td>
                                    <td>{$v.last_login_time|date="Y-m-d",###}</td>

                                    <td>
                                        <if condition="$v['user_type'] neq 1">
                                            <a class="btn btn-danger cp-del-data Noline" href="#" title="拉黑" url="{:U('Users/LablackUser')}" markId="{$v['uid']}">
                                                <i class="fa fa-external-link-square"></i>
                                            </a>
                                       </if>
                                    </td>
                                </tr>
                            </foreach>
                            </tbody>
                        </if>
                    </table>
                    <!--分页区域 START-->
                    <div style="text-align: left">
                        <ul class="pagination">
                            {$data.page}
                        </ul>
                    </div>
                    <!--分页区域 END-->
                </div>
            </div>
        </div><!--/col-->

    </div>
    <!--右侧内容主体 END-->
</div>
<!-- end: Content -->
